export interface Config {
    env:      string;
    isServer: boolean;
    db:       DB;
    logDB:    DB;
    redis:    Redis;
    admin:    ModuleConfig;
    app:      ModuleConfig;
    cos:      Cos;
    tms:      Cos;
}

export interface ModuleConfig {
    secret:    string;
    expiresIn: string;
}

export interface Cos {
    SecretId:  string;
    SecretKey: string;
    Bucket?:   string;
    Region:    string;
}

export interface DB {
    host:     string;
    port:     number;
    dbname:   string;
    username: string;
    password: string;
}

export interface Redis {
    host:     string;
    port:     number;
    password: string;
    db:       number;
}